package com.lenovo.smarttraffic.bean.GsonBean;

import com.google.gson.annotations.SerializedName;

import org.litepal.crud.LitePalSupport;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by Caleb.F
 * on 2019-11-12
 * at 15:04
 */
public class SenseBean {
    @Override
    public String toString() {
        return "SenseBean{" +
                "LightIntensity=" + LightIntensity +
                ", _$Pm25270=" + _$Pm25270 +
                ", co2=" + co2 +
                ", humidity=" + humidity +
                ", temperature=" + temperature +
                ", currentTime='" + currentTime + '\'' +
                '}';
    }

    public SenseBean(int lightIntensity, int _$Pm25270, int co2, int humidity, int temperature, String currentTime) {
        LightIntensity = lightIntensity;
        this._$Pm25270 = _$Pm25270;
        this.co2 = co2;
        this.humidity = humidity;
        this.temperature = temperature;
        this.currentTime = currentTime;
    }

    public SenseBean() {
    }

    /**
     * LightIntensity : 3756
     * pm2.5 : 151
     * co2 : 3009
     * humidity : 25
     * temperature : 22
     * RESULT : S
     * ERRMSG : 成功
     */

    private int LightIntensity;
    @SerializedName("pm2.5")
    private int _$Pm25270; // FIXME check this code
    private int co2;
    private int humidity;
    private int temperature;
    private String RESULT;
    private String ERRMSG;
    private String currentTime;

    public String getCurrentTime() {
        return currentTime;
    }

    public SenseBean setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
        return this;
    }

    public int getLightIntensity() {
        return LightIntensity;
    }

    public void setLightIntensity(int LightIntensity) {
        this.LightIntensity = LightIntensity;
    }

    public int get_$Pm25270() {
        return _$Pm25270;
    }

    public void set_$Pm25270(int _$Pm25270) {
        this._$Pm25270 = _$Pm25270;
    }

    public int getCo2() {
        return co2;
    }

    public void setCo2(int co2) {
        this.co2 = co2;
    }

    public int getHumidity() {
        return humidity;
    }

    public void setHumidity(int humidity) {
        this.humidity = humidity;
    }

    public int getTemperature() {
        return temperature;
    }

    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }

    public String getRESULT() {
        return RESULT;
    }

    public void setRESULT(String RESULT) {
        this.RESULT = RESULT;
    }

    public String getERRMSG() {
        return ERRMSG;
    }

    public void setERRMSG(String ERRMSG) {
        this.ERRMSG = ERRMSG;
    }
}
